package com.easy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @ClassName UtilController
 * @Description TODO
 * @Author 周轩霆
 * @Date 2022/5/31 17:11
 **/
@Controller
public class UtilController {
    //跳转到订单页面,与前端ajax配合使用
    @RequestMapping("/roomdetail")
    public String roomDetail(@RequestParam Map params, Model model) {
        System.out.println(params.get("id"));
       /* Integer id = (Integer) params.get("id");
        model.addAttribute("id",id);*/
        return "page/roomorderinfo.html";

    }
}
